package com.tanhua.dubbo.api;

import com.tanhua.model.mongo.Movement;
import com.tanhua.model.vo.PageResult;

import java.util.List;

public interface MovementApi {

   public String publish(Movement movement);

    PageResult findByUserId(Long userId, Integer page, Integer pagesize);

    //根据用户ID,查询用户好友发布的动态列表
    public List<Movement> findFriendMovements(Long friendId, Integer page, Integer pagesize);

    List<Movement> randomRecommend(Integer pagesize);

    List<Movement> findByPids(List<Long> pids);
   //根据id查询单个动态,并展示详情
    Movement findByMovementId(String movementId);

    PageResult findByUserId(Long uid, Integer state, Integer page, Integer pagesize);

    public  void update(String movementId, int state);
}
